strs = input('请输入一个字符串：')

numLower = 0
numUpper = 0
numDigit = 0
numOther = 0

for i in strs:
    if i.islower():
        numLower += 1
    elif i.isupper():
        numUpper += 1
    elif i.isdigit():
        numDigit += 1
    else:
        numOther += 1

print(
    f'此字符串中\n小写字符的个数={numLower}\n大写字符的个数={numUpper}\n数字字符的个数={numDigit}\n其他字符的个数={numOther}')
